/**
 * 
 */
package travibot.ui.gui.forms;

import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;

import travibot.ui.gui.forms.viewers.TasksViewer;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author macekpet
 *
 */
public class TaskList extends Composite implements CompositeForm {

    private TasksViewer viewer = null;
    private Table tasksTable;
    private MainForm mainForm = null;  //  @jve:decl-index=0:
    
    TaskList(Composite parent, int style) {

        super(parent, style);
        initialize();
    }
    
    private void initialize() {
        
    	setLayout(new GridLayout());
        this.setBounds(29, 52, 300, 200);
        {
            GridData tasksTableLData = new GridData();
            tasksTableLData.verticalAlignment = GridData.FILL;
            tasksTableLData.grabExcessVerticalSpace = true;
            tasksTableLData.grabExcessHorizontalSpace = true;
            tasksTableLData.horizontalAlignment = GridData.FILL;            
            tasksTable = new Table(this, SWT.BORDER);
            tasksTable.setLayoutData(tasksTableLData);            
            viewer = new TasksViewer(tasksTable);
        }
    }


    /* (non-Javadoc)
     * @see travibot.ui.gui.forms.CompositeForm#setInput(java.lang.Object)
     */
    public void setInput(Object object) {

        if(viewer != null)
            viewer.setInput(object);
    }

    /* (non-Javadoc)
     * @see travibot.ui.gui.forms.CompositeForm#setMainShell(travibot.ui.gui.forms.MainShell)
     */
    public void setMainForm(MainForm mainform) {

        this.mainForm = mainform;
    }

    public void setImageRegistry(ImageRegistry imageRegistry) {

        // TODO Auto-generated method stub
        
    }

    

}
